package chapter10;

public class Day05 {
    public static void main(String[] args) {
        int j = 0,k;
        for (int i = 10000;; i++) {
            for ( k = 2; i%k !=0 &&k * k<i;  k++) ;
                if (k * k>i){
                    j++;
                    System.out.println(i+"\t");
                    if (j>=10){
                        break;
                    }
                }
            }
        }
    }

